import request from '@/utils/request'

const api_name = '/act/task'

export default {

  // 列表
  getPageList(pageNum, pageSize) {
    return request({
      // 接口路径
      url: `${api_name}/getTasks/${pageNum}/${pageSize}`,
      method: 'get' // 提交方式

    })
  },
  formDataShow(taskID) {
    return request({
      // 接口路径
      url: `${api_name}/formDataShow`,
      method: 'get',
      params: taskID
    })
  },
  handle(formData) {
    return request({
      // 接口路径
      url: `${api_name}/formDataSave`,
      method: 'post',
      data: formData
    })
  }

}
